<extend name="Public:owpage"/>
<block name="banner"><img src="__PUBLIC__/ow/img/20150204040337754.jpg"></block>
<block name="left-box">
	<div class="title1">新闻资讯</div>
	<php>
		$terms=sp_get_child_terms(5); //获取子分类信息
	</php>

	<ul class="ul2">
		<volist name="terms" id="vo">
			<li>
				<php>
					$id=I('get.id');
				</php>
				<eq name="vo.term_id" value="$id">
					<a class="active" href="{:leuu('list/index',array('id'=>$vo['term_id']))}">
						<img src="__PUBLIC__/ow/img/cat_12.png">
						<b>{$vo.name}</b>
						<span>{$vo.description}</span>
					</a>
					<else/>
					<a href="{:leuu('list/index',array('id'=>$vo['term_id']))}">
						<img src="__PUBLIC__/ow/img/cat_12.png">
						<b>{$vo.name}</b>
						<span>{$vo.description}</span>
					</a>
				</eq>
			</li>
		</volist>
	</ul>
</block>

<block name="main">
	<php>
		$lists = sp_sql_posts_paged_bykeyword($keyword,"",20);
	</php>
	<ul class="list">
		<volist name="lists['posts']" id="vo">
			<php>
				$smeta=json_decode($vo['smeta'], true);
			</php>
			<li>
				<p>
					<span class="fr">[ {:date('m-d h:i',strtotime($vo['post_date']))} ]</span>
					<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" target="_blank">
						<b>{$vo.post_title}</b>
					</a>
				</p>
				<p class="p12"> {$vo.post_excerpt} </p>
			</li>
		</volist>
	</ul>

	<notempty name="lists.page">
		<div id="pages" class="text-c clearfix" style="margin-right:15px;">
			<ul>{$lists['page']}</ul>
		</div>
	</notempty>
</block>
